package com.android.aishangauction.model.auction;

import com.android.aishangauction.utils.MyLog;
import com.google.gson.Gson;
import com.zhy.http.okhttp.callback.Callback;

import okhttp3.Response;

/**
 * Created by Administrator on 2017/10/25.
 */

public abstract class AuctionHistoryDataCallback extends Callback<AuctionHistoryData> {

    @Override
    public AuctionHistoryData parseNetworkResponse(Response response, int id) throws Exception {
        String string = response.body().string();
        MyLog.e("AuctionHistoryData",string);
        AuctionHistoryData  data = new Gson().fromJson(string,AuctionHistoryData.class);
        MyLog.e("AuctionHistoryData1",data.getList_total()+"");
        return data;
    }
}


